/**
 * 
 */
package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.Student;
import org.springframework.stereotype.Service;

/**
 * 
 * Description:交费信息的服务类
 * 
 * @version 1.0 2009-4-17 上午00:12:59 闫克（kurtyan777@gmail.com）created
 * 
 */
@Service
public interface DormitoryChargeService {
	@SuppressWarnings("unchecked")
	public List getDormitoryCharge(String enrollyear, String chargeyear, int chargestatus, int isextension, int startrow, int pagesize);

	/**
	 * 
	 * Description: 将查询的dormitorycharge导出至Excel
	 *  
	 * @Version1.0 May 1, 2009 10:11:27 PM 李双江（paradise.lsj@gmail.com）创建
	 * @param enrollyear
	 * @param chargeyear
	 * @param chargestatus
	 * @param isextension
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List getDormitoryChargeForExport(String enrollyear, String chargeyear, int chargestatus, int isextension);

	/**
	 * 
	 * Description: 获得分页的总行数
	 * 
	 * @Version1.0 Apr 18, 2009 7:31:52 PM 李双江（paradise.lsj@gmail.com）创建
	 * @param enrollyear
	 * @param feesyear
	 * @param chargestatus
	 * @param lodgechargetype
	 * @return
	 */

	public int getStudentLodgeChargeInfoRows(String enrollyear, String feesyear, String chargestatus, String lodgechargetype);
	
	/**
	 * 根据条件取得待收费学生的总数
	 * @param searchsql
	 * @return
	 */
	public int getCount(String searchsql);
	
	/**
	 * 
	 * Description: 高级查询获得一个学生列表
	 * 
	 * @param searchstudentsql
	 * @return
	 */
	public List<Student> getStudentBySQLSearchConditions(String searchstudentsql, int pageSize, int startRow);
	
	/**
	 * 
	 * Description: 高级查询页面全选所有查询到的学生
	 * 
	 * @Version1.0 Apr 21, 2009 4:12:19 PM 郑旭（zhengxu2006@gmail.com）创建
	 * @param searchstudentsql
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List getStudentBySQL(String searchstudentsql);
	
	/**
	 * 生成学生计费信息
	 * @param studentids   学生ID，多个以逗号分隔
	 * @param year  计费年份
	 * @return
	 */
	public boolean exportToCharge(String studentids,String year);
	
}
